home *** CD-ROM | disk | FTP | other *** search
/ QuickTime - The Beta Release / QuickTime - The Beta Release.iso / Programming Stuff / Sample Code / MiniPlayer / Mini Player.h < prev    next >
Text File  |  1991-09-04  |  2KB  |  94 lines

  1. /**************************************************
  2. *
  3. * Definitions and equates for the Mini player
  4. *
  5. *  
  6. ***************************************************/
  7.  
  8. #include <Menus.h>
  9. #include <Events.h>
  10. #include <Controls.h>
  11.  
  12. /* The fixed number for times one speed */
  13. #define x1Speed        (long)1<<16
  14.  
  15. /**************************************************
  16. *
  17. *  Definitions for the menus
  18. *
  19. ***************************************************/
  20.  
  21. /* resource IDs of menus */
  22. #define appleID        128
  23. #define fileID        129
  24. #define editID        130
  25.  
  26. /* Items in the Apple menu */
  27. #define    aboutItem    1
  28.  
  29. /* Items in the file menu */
  30. #define openItem    1
  31. #define closeItem    2
  32. #define    saveItem    3
  33. #define quitItem    5
  34.  
  35.  
  36. /**************************************************
  37. *
  38. *  Definitions for dialog boxes
  39. *
  40. ***************************************************/
  41.  
  42. /* other resources */
  43. #define    aboutDlgID    132        /* About box */
  44. #define    meowID        8192    /* Sound for about box */
  45.  
  46.  
  47. /**************************************************
  48. *
  49. *  Definitions for cursors
  50. *
  51. ***************************************************/
  52. #define    handCursorID    5004
  53. #define    pauseCursorID    5000
  54. #define    reverseCursorID    5001
  55. #define    playCursorID    5002
  56. #define    blinkCursorID    5003
  57.  
  58. /**************************************************
  59. *
  60. * Prototypes
  61. *
  62. ***************************************************/
  63. /* Files in mini main.c */
  64. void InitMacintosh(void);
  65. void SetUpMenus(void);
  66. void SetUpWindows(void);
  67. void SetUpCursors(void);
  68. void AdjustMenus(void);
  69. static enable(MenuHandle menu, short item, Boolean ok);
  70. void CloseEm(WindowPtr w);
  71. void DoAboutBox(void);
  72. void DoOpen(void);
  73. void AdjustCursor(void);
  74. Boolean IsMyWindow(WindowPtr w);
  75. void HandleMouseDown(EventRecord    *theEvent);
  76. void HandleMouseUp(EventRecord    *theEvent);
  77. void HandleEvent(void);
  78. void main(void);
  79. void HandleMenu (long mSelect);
  80.  
  81. /* Files in mini movie stuff.c */
  82. void SetUpMovies(void);
  83. void OpenTheMovie(Str255    fn, int    vRef);
  84. void MakeMovieControls(void);
  85. void MyMoviesTask(void);
  86. void CleanUpMovie(void);
  87. pascal void MovieScrollProc(ControlHandle theControl, int theCode);
  88. void MovieMouseDown(WindowPtr theWindow, Point thePoint);
  89. void MovieMouseUp(WindowPtr theWindow, Point thePoint);
  90. void MovieCursor(void);
  91. void DoMovieUpdate(void);
  92.  
  93.  
  94.